package cn.lhz.service.impl;

import cn.lhz.dto.IndiaCity;
import cn.lhz.dto.IndiaMonth;
import cn.lhz.mapper.IndiaCityMapper;
import cn.lhz.service.IndiaCityService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 年阔正
 * @version 1.0.0
 */
@Service
@RequiredArgsConstructor
public class IndiaCityServiceImpl implements IndiaCityService {

  private final IndiaCityMapper IndiaCityMapper;

  @Override
  public List<IndiaCity> getIndiaCityData() {
    // 从Presto查询数据
    return IndiaCityMapper.getIndiaCityData();
  }

  @Override
    public List<IndiaMonth> getIndiaMonthData() {
        // 从Presto查询数据
        return IndiaCityMapper.getIndiaMonthData();
    }

}
